﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Web
{
    public class Card
    {
        private int _prefix;
        public int Prefix
        {
            get { return _prefix; }
        }

        private int _suffix;
        public int Suffix
        {
            get { return _suffix; }
        }

        public Card(int prefix, int suffix)
	    {
            if(prefix >=0 && prefix<=12)
                this._prefix = prefix;
            if (_suffix >= 0 && _suffix <= 3)
                this._suffix = suffix;
            
	    }

        public  Boolean compareBetw2Card(Card firstCard,Card Secondcard)
        {
            if(firstCard.Prefix > Secondcard.Prefix)
                return true;
            else if(firstCard.Prefix < Secondcard.Prefix)
                return false;
            else{
                if(firstCard.Suffix > Secondcard.Suffix)
                    return true;
                else
                    return false;
            }
        }

    }
}